import { Module } from '@nestjs/common';
import { CronService } from './cron.service';

@Module({
    providers: [CronService],
})
export class CronModule {
    constructor(private readonly cronService: CronService) {}

    async onModuleInit() {
        await this.cronService.startWork();
    }
}
